package cn.tedu.egweibo5.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Size;

/**
 * @Author: Miyako
 * @CreateTime: 2024-08-14  23:17
 * @Description: TODO
 */
@Data
public class CommentDTO {
    @Size(min = 10 ,max = 200 ,message = "评论内容量在10-200字符以内")
    @ApiModelProperty(value = "评论内容",required = true)
    private String content;
    @Range(min = 200,max = 300,message = "微博id在200-300之间")
    @ApiModelProperty(value = "微博Id",required = true)
    private Long weiboId;
}
